Skip to content

feat: support multiple --env-file in ComposeConfig#236

Merged
joshrotenberg merged 1 commit intojoshrotenberg:mainfrom
skharchikov:feat/multiple-env-files
Feb 24, 2026
Merged

feat: support multiple --env-file in ComposeConfig#236
joshrotenberg merged 1 commit intojoshrotenberg:mainfrom
skharchikov:feat/multiple-env-files

Conversation

@skharchikov
Copy link
Copy Markdown
Contributor

@skharchikov skharchikov commented Feb 23, 2026

ComposeConfig previously only accepted a single env file (Option<PathBuf>).This changes it to Vec<PathBuf> to match Docker Compose v2.17+ support for multiple --env-file flags, and aligns with how RunCommand and ExecCommand already handle env files.

I've been using docker-wrapper to rewrite some shell scripts into a Rust TUI app and ran into the need for multiple --env-file support in compose commands.

ComposeConfig previously only accepted a single env file
(Option<PathBuf>).This changes it to Vec<PathBuf> to match Docker
Compose v2.17+ support for multiple --env-file flags, and aligns with
how RunCommand and ExecCommand already handle env files
@joshrotenberg
Copy link
Copy Markdown
Owner

Thanks, looks good! Will probably require a version bump since it changes a public field but I'm ok with that.

@joshrotenberg joshrotenberg merged commit ea75db3 into joshrotenberg:main Feb 24, 2026
11 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants